package class2.pojo;

import class2.pojo.field.Id;

import java.util.HashMap;

public class Cfg {
    public static final String ADD_LEGAL = "add的格式必须为add id:001 name:zhangsan ..，用空格隔开";
    public static final String MOD_KEY_LEGAL = "mod的格式必须为mod id key:value，用空格隔开";
    public static final String MOD_LEGAL = "mod的格式必须为mod id key:value，用空格隔开";
    public static String HELP =
            "新增：add id:[000001] name:[张三] date:[2022-05-11] position:[职位] department:[部门]\n" +
            "修改：mod [001(id)] date:[2022-09-71]\n" +
                    "删除：del [001(id)]"+
                    "查询：show id或name:[对应的id或name]" +
                    "遍历：list name:[张三] order:[date]" +
                    "帮助：help";
    public static final String DELETE_LEGAL = "delete的格式必须为delete id，用空格隔开";
    public static final String SHOW_LEGAL = "show的格式必须为show id，用空格隔开";
    public static final String LIST_LEGAL = "list的参数，过滤为 position:算法工程师，排序为 order:date";
    public static final String NO_SUCH_CMD = "无此命令";

    public static void register() throws InstantiationException, IllegalAccessException {
        HashMap<String, Class<?>> stringFieldHashMap=new HashMap<String, Class<?>>(){{
            put("id", Id.class);
        }};
        stringFieldHashMap.get("id").
    }
}
